import request from '@/utils/request'

// 查询题目提交列表
export function listSubmit(query) {
  return request({
    url: '/submit/submit/list',
    method: 'get',
    params: query
  })
}

// 查询题目提交详细
export function getSubmit(id) {
  return request({
    url: '/submit/submit/' + id,
    method: 'get'
  })
}

// 新增题目提交
export function addSubmit(data) {
  return request({
    url: '/submit/submit',
    method: 'post',
    data: data
  })
}

// 修改题目提交
export function updateSubmit(data) {
  return request({
    url: '/submit/submit',
    method: 'put',
    data: data
  })
}

// 删除题目提交
export function delSubmit(id) {
  return request({
    url: '/submit/submit/' + id,
    method: 'delete'
  })
}
